<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet">
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.js"></script>
<script>
    $(document).ready(function (event) {
        $("#call").click(function (e) {
            var appId = $("#appId").val();
            var provider = $("#provider").val();
            var callerNo = $("#callerNo").val();
            $.ajax({
                type:"POST",
                url:"/call/send",
                dataType:"json",
                contentType:"application/json",
                data:JSON.stringify({"appId": appId, "provider": provider, "callerNo": callerNo, "calledNo": calledNo, "callerRole": callerRole}),
                success:function(data){
                    alert(data);
                }
            });
        });
    });
</script>
<body>
    <div class="container">
        <div class="row">
            <div class="col-md-4 col-md-offset-4">
                    <br><br><br>
                    <div class="form-group">
                        <label>欢迎来到法海后台</label>
                    </div>
                    <div class="form-group">
                        <label for="callerRole">修改名称</label>
                        <input type="text" class="form-control" id="callerRole" placeholder="">
                    </div>
                    <button id="call" type="submit" class="btn btn-default">Submit</button>
            </div>
        </div>
    </div>
</body>
</html>
